var seller_router = Router({
    '/seller': {
        on: function () {
            use("seller/my_center/my_center");
            SELLER_MY_CENTER.__INIT__();
        }
        ,'/community': {
            on: function () {
                use("seller/community/community");
                SELLER_COMMUNITY.__INIT__();
            }
        }
        ,'/examine': {
            on: function () {
                use("seller/examine/examine");
                SELLER_EXAMINE.__INIT__();
            }
        }
        ,'/goods': {
        	'/list': function(){
                use('seller/goods/list');
                SUPPLY_GOODS_LIST.__INIT__();
    		}
        	,'/supply': {
				on: function(){
					use('seller/goods/supply');
					SUPPLY_GOODS.__INIT__(-1);
				}
				,'/:gid': function(gid){
                    use('seller/goods/supply');
                    SUPPLY_GOODS.__INIT__(gid);
				}
			}
        }
        ,'/order': {
        	'/list': function(){
				use('seller/order/list');
				SELLER_ORDER_LIST.__INIT__();
			}
        	,'/detail/:oid': function(oid){
				use('seller/order/detail');
				SELLER_ORDER_DETAIL.__INIT__(oid);
			}
        	,'/statistics': function(){
				use('seller/order/statistics');
				SELLER_ORDER_STATISTICS.__INIT__();
			}
        }
    }
});

//seller router 初始化
seller_router.init();

